







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The OrderedDictionary<TKey,TValue>.View class is used to look at a subset of the keys and values
inside an ordered dictionary. It is returned from the Range, RangeTo, RangeFrom, and Reversed methods.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
[SerializableAttribute] public class View : DictionaryBase<TKey, TValue> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class View _ Inherits DictionaryBase(Of TKey, TValue) |
Visual C++ |
---|
[SerializableAttribute] public ref class View : public DictionaryBase<TKey, TValue> |
Remarks
Views are dynamic. If the underlying dictionary changes, the view changes in sync. If a change is made to the view, the underlying dictionary changes accordingly.
Typically, this class is used in conjunction with a foreach statement to enumerate the keys and values in a subset of the OrderedDictionary. For example:
![]() | |
---|---|
foreach(KeyValuePair<TKey, TValue> pair in dictionary.Range(from, to)) { // process pair } |
Inheritance Hierarchy
System..::Object
Wintellect.PowerCollections..::CollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>
Wintellect.PowerCollections..::DictionaryBase<(Of <TKey, TValue>)>
Wintellect.PowerCollections..::OrderedDictionary<(Of <TKey, TValue>)>..::View
Wintellect.PowerCollections..::CollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>
Wintellect.PowerCollections..::DictionaryBase<(Of <TKey, TValue>)>
Wintellect.PowerCollections..::OrderedDictionary<(Of <TKey, TValue>)>..::View